#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main()
{
	int n = 0;
	while (scanf("%d", &n) != EOF)
	{
		char arr[21] = { 0 };
		int i = 0;
		arr[0] = '*';
		arr[n - 1] = '*';
		for (i = 1; i < n - 1; i++)
		{
			arr[i] = ' ';
		}
		for (i = 0; i < n; i++)
		{
			printf("%c", arr[i]);
		}
		printf("\n");
		int j = 0;
		while (j < n - 1)
		{
			arr[j + 1] = arr[j];
			arr[n - 2 - j] = arr[n - 1 - j];
			if ((j + 1) != (n - 1 - j))
			{
				arr[j] = ' ';
				arr[n - 1 - j] = ' ';
			}
			j++;
			for (i = 0; i < n; i++)
			{
				printf("%c", arr[i]);
			}
			printf("\n");

		}
	}

	return 0;
}